java.lang.ObjectSomeSimpleMethods
public class SomeSimpleMethods
SomeSimpleMethods: Demonstrates various styles of methods and method calls
| Constructor Summary | |
|---|---|
SomeSimpleMethods()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] arg)
|
static int |
rollDice(int numberOfSides)
This method simulates the rolling of one die by randomly generating an integer between 1 and the size of the die. |
static void |
showRoll(int sidesOnDie)
This method creates a simple graphic effect whenever a die is rolled. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SomeSimpleMethods()
| Method Detail |
|---|
public static void main(java.lang.String[] arg)
public static int rollDice(int numberOfSides)
numberOfSides - The number of sides on the die to be rolled
public static void showRoll(int sidesOnDie)
sidesOnDie - The number of sides on the die to be rolled